#Makefile: lab2

# macro definitions
CC = gcc -Wall
CFLAGS = -ansi -c

# dummy targets
all: FormatTest

clean:
	rm -fv *.o
	rm -fv test.txt
	rm -fv FormatTest

# compilation rules
FormatTest: formatTest.o format.o DummyStructure.o
	$(CC) formatTest.o format.o DummyStructure.o -o FormatTest

formatTest.o: formatTest.c
	$(CC) $(CFLAGS) formatTest.c -o formatTest.o

format.o: format.c format.h
	$(CC) $(CFLAGS) format.c -o format.o

ImageList.o: DummyStructure.c DummyStructure.h
	$(CC) $(CFLAGS) DummyStructure.c -o DummyStructure.o
